import request from "@/utils/request.js"


export function getBanners(data) {
	return request.request({
		url: "/banner",
		data
	})
};

// 推荐歌单
export function getSongs(data){
	return request.request({
		url:"/personalized",
		data
	})
}

// 新碟新歌
export function getNewSongs(){
	return request.request({
		url:"/album/newest"
	})
}

// 精选视频
export function getVideo(data){
	return request.request({
		url:"/related/allvideo",
		data
	})
}

// 视频页
export function getVeNav(data){
	return request.request({
		url:"/related/allvideo",
		data
	})
}

// 退出登录
export function logout(data){
	return request.request({
		url: "/banner",
		data
	})
}

// 热搜版
export function apiGetSearchHot(data) {
	return request.request({
		url: '/search/hot/detail',
		method: 'GET',
		data
	})
}

// 搜索获取数据
export function apiGetSearch(data) {
	return request.request({
		url: '/search/suggest',
		method: 'GET',
		data
	})
}

//歌单详情
export function songList(data) {
	return request.request({
		url: '/playlist/detail',
		method: 'GET',
		data
	})
}

//获取歌曲url
export function apiGetSongUrl(data) {
	return request.request({
		url: '/song/url',
		method: 'GET',
		data
	})
}

// 获取歌曲详情
export function apiGetSongDetail(data) {
	return request.request({
		url: '/song/detail',
		method: 'GET',
		data
	})
}